package com.myway.dao;


import com.myway.pojo.FlyPassenge;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FlyPassengeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(FlyPassenge record);

    int insertSelective(FlyPassenge record);

    FlyPassenge selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(FlyPassenge record);

    int updateByPrimaryKey(FlyPassenge record);

    List<FlyPassenge> selectPassenge(String userId);

    /**
     *rdh新增方法
     * 根据订单id查询乘客
     */
    List<FlyPassenge>  getFlyPassengeByOrderId(@Param("orderId")String orderId);

    List<FlyPassenge> selectByCardNo(String cardNo);


    /**
     * ycy新增方法
     * 根据登录人查询乘客
     */
    List<FlyPassenge>  getPassengerByUserId(@Param("userId")String userId,@Param("flag")String flag);

}